<div class="rslides_container" >
    <ul class="rslides" id="slider">
        <?php foreach ($marks as $value):?>
        <a class="image-name"><img src="<?php print $value->image;?>" width="600" height="338"/><?php print $value->title;?></a>
        <?php endforeach;?>
    </ul>
</div>
<script>
    jQuery(function ($) { 
        // Slideshow
        $("#slider").responsiveSlides({
            auto: true,
            pager: true,
            nav: true,
            speed: 500,
            //maxwidth:800,
            namespace:"transparent-btns"
        });
    });
</script>